﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="Gmis.Web.Manage.Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>用户登录</title>
         <script type="text/javascript" language="javascript">

             function fGetCode(imgthis) {
                 var gNow = new Date();
                 imgthis.src = "ValidateCode.aspx?x=" + gNow.getSeconds();
             }
             function chksub() {
                 if (document.getElementById("txt_username").value == "") {
                     alert("请输入用户名！");
                     return false;
                 }

                 if (document.getElementById("txt_password").value == "") {
                     alert("请输入密码！");
                     return false;
                 }

                 if (document.getElementById("txt_val").value == "") {
                     alert("请确认验证码！");
                     return false;
                 }

                 return true;
             }
    </script>
</head>
<body style="background: url(../images/bj.jpg); background-repeat:no-repeat; background-position:top;">

    <form id="form1" runat="server">
 <div style="text-align: center; font-size: 19pt;margin-top: 250px;">       
       <br />
        <br />
        <div style="margin-top: 30px; background: url(../images/bg_1.gif); height: 200px;
            width: 100%">
            <div style="text-align: center; background: url(../images/bg_2.gif); margin: 0 auto;
                border-color: black; height: 200px; width: 400px; border: 1px #000000 solid;
                background-color: #eaeaea; filter: progid:DXImageTransform.Microsoft.Shadow (Color=#333333,Direction=135,strength=3)">
                <div style="margin-top: 30px;">
                    <table align="center" style="text-align: center; font-size: 10pt" cellpadding="0"
                        cellspacing="0" border="0">
                        <tr>
                            <td  align="right" height="28" width="70px">
                                用户名：
                            </td>
                            <td align="left" colspan="2">
                                <asp:TextBox ID="txt_username" runat="server" CssClass="input2" MaxLength="20" Text=""></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" height="28">
                                密码：
                            </td>
                            <td align="left"  colspan="2">
                                <asp:TextBox ID="txt_password" runat="server" CssClass="input2" MaxLength="20" Text="" TextMode="Password"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" height="28">
                                验证码：
                            </td>
                            <td align="left" width="50px"><asp:TextBox ID="txt_val" runat="server" CssClass="input2" Width="50px" MaxLength="5"></asp:TextBox></td>
                            <td width="100px"><asp:Image Runat="server" ID="img_val" ImageUrl="~/Common/ValidateCode.aspx" onclick="fGetCode(this);"  ToolTip="点击刷新验证码" ></asp:Image>
                            </td>
                        </tr>
                    </table>
                    <p align="center">
                        <asp:Button ID="btn_login" runat="server" Text="登 陆" CssClass="input1" 
                            onclick="btn_login_Click" />&nbsp;&nbsp;<asp:Button ID="btn_goback" runat="server" Text="返 回" CssClass="input1" 
                            onclick="btn_goback_Click" Visible="false"/>&nbsp;</p>
                </div>
            </div>
        </div>
    </div>
    <asp:Label ID="lab_example" runat="server" Text=""></asp:Label>
    </form>
</body>
</html>
